package com.zq.zqmanager.service;

import com.zq.zqmanager.dao.RoleDAO;
import com.zq.zqmanager.entity.Permission;
import com.zq.zqmanager.entity.Role;
import com.zq.zqmanager.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: zqmanager
 * @Date: 2020/2/26 20:39
 * @Author: zhengqiang
 * @Description:
 */
@Service
public class RoleService implements RoleDAO {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> selectRoleByUserId(Integer id) {
        return roleMapper.selectRoleByUserId(id);
    }
}
